<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String showTitle = request.getParameter("showTitle");
    String topNews = request.getParameter("topNews");
%>
<style>
    .sy_body_pic{
        width: 330px;
    }
</style>
<div class="sys-portlet" <%if(!"".equals(topNews)&&topNews!=null){%>style="margin-top:0px;"<%}%>>
    <%if (showTitle != null && showTitle.equals("1")) {%>
    <div class="sys-title1 sys-title-bg1">
        <span class="sys-title-txt1 sys-title-txtbg sys-title-color1">
            <img class="sys-title-ico" src="<%=path%>/res/themes/${sessionScope.SESSION_STREET_THEME.thStyle}/imgs/ico_news.gif" />
            <s:property value="#parameters.title"/>
        </span>
        <div class="sys-more sys-more-ico1" onclick="location.href='<%=path%>/<s:property value="domain"/>/msg/list/<s:property value="msgType"/>'"><div></div></div>
    </div>
    <%}%>
    <table class="portlet-body" width="100%" cellspacing="0" cellpadding="0">
        <tr>
            <td class="sy_body_pic">
                <div style="width: 330px; height: 176px; overflow: hidden">
                    <s:iterator var="msg" value="txtMsgList" status='st'>
                        <s:if test="#st.First">
                            <a href="<%=path%>/<s:property value="domain"/>/msg/item/<s:property value="#msg.msgType"/>/<s:property value="#msg.msgId"/>">
                            	<s:if test="''!=#msg.msgCover && #msg.msgCover!=null">
                            		<img src="<%=path%><s:property value="#msg.msgCover"/>" width="330" height="176"/>
                            	</s:if>
								<s:else>
									<img src="<%=path%>/res/imgs/nopic.jpg" width="330" height="176"/>
								</s:else>
                            </a>
                            </s:if>
                        </s:iterator>
                </div>

            </td>
            <td width="10"></td>
            <td valign="top">
                <table width="100%" cellspacing="0" cellpadding="0">
                    <s:iterator var="msg" value="txtMsgList">
                        <tr>
                            <td>
                                <a target="_blank" href="<%=path%>/<s:property value="domain"/>/msg/item/<s:property value="#msg.msgType"/>/<s:property value="#msg.msgId"/>">
                                    <s:property value="#msg.msgTitle"/>
                                </a>
                            </td>
                            <td width="70px"><s:property value="#msg.publishTime"/></td>
                        </tr>
                    </s:iterator>
                </table>
            </td>
        </tr>
    </table>
</div>